﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;

namespace MobileSMSRemote
{
    public class DateTimeSmsCommand:ISmsCommand
    {
        public DateTimeSmsCommand()
        {
            Name = "DateTimeSmsCommand";
            Description = "Get date and time"; 
        }

        public override string ToString()
        {
            return Description;
        }

        #region ISmsCommand Members

        public string Name { get; set; }
        
        public string Description { get; set; }

        public string Action()
        {
            return string.Format("{0} {1}", DateTime.Now.ToLongDateString(), DateTime.Now.ToShortTimeString());
        }

        #endregion
    }
}
